package cn.appsys.service.deve.appversion;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appsys.dao.deve.appversion.DeveAppVersionMapper;
import cn.appsys.pojo.AppVersion;

//@Service是用来创建DeveAppVersionServiceImp1类的bean实例对象，
//当其他类比如Controller中需要用到此依赖对象时就使用0Resource将此依赖对象进行注入
@Service("deveAppVersionService")
public class DeveAppVersionServiceImpl implements DeveAppVersionService {

	@Resource
	private DeveAppVersionMapper deveAppVersionMapper;
	@Override
	public List<AppVersion> getAppVersionByAppId(Integer appId) {
		return deveAppVersionMapper.getAppVersionByAppId(appId);
	}
	@Override
	public int insertAppVersion(AppVersion appVersion) {
		return deveAppVersionMapper.insertAppVersion(appVersion);
	}
	@Override
	public AppVersion getVersionById(Integer id) {
		return deveAppVersionMapper.getVersionById(id);
	}
	@Override
	public int deleteApkFile(Integer id) {
		return deveAppVersionMapper.deleteApkFile(id);
	}
	@Override
	public int updateAppVersion(AppVersion appVersion) {
		return deveAppVersionMapper.updateAppVersion(appVersion);
	}

}
